let app = getApp()
Page({
  data: {
    iconList: [{
        icon: 'my',
        color: 'orange',
        badge: 0,
        name: '用户管理',
        url: "/pages/userList/userList"
      },
      {
        icon: 'text',
        color: 'red',
        badge: 0,
        name: '答题管理',
        url: "/pages/adminAnswer/adminAnswer"
      }, {
        icon: 'goods',
        color: 'orange',
        badge: 0,
        name: '兑换管理',
        url: "/pages/adminGoods/adminGoods"
      },
      {
        icon: 'form',
        color: 'orange',
        badge: 0,
        name: '新闻管理',
        url: "/pages/adminNews/commList/commList"
      },
    ]
  },
  ItenClick(e) {
    let url = e.currentTarget.dataset.url
    wx.navigateTo({
      url: url
    })
  }
})